package com.zt.observer.controller;

import com.zt.observer.domain.Apply;
import com.zt.observer.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

/**
 * 申请
 *
 * @author zt
 * @date 2021/12/9 13:56
 */

@RestController
public class ApplyController {

    @Autowired
    ApplyService applyService;

    @RequestMapping("/apply")
    public String apply(){

        Apply apply = Apply.builder().applyTime(new Date()).id(1L).name("test").build();

        applyService.insertApply(apply);

        return "0";
    }

}
